/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import javafx.scene.image.ImageView;
import javafx.scene.Group;
import java.lang.Comparable;
import java.lang.UnsupportedOperationException;

/**
 * @author Sik
 */

public class MapZone extends Group, Comparable
{
    public-init var num : Integer;
    public-init var piece : ImageView;
    
    override public function compareTo (arg0 : Object) : Integer
    {
        return num - (arg0 as MapZone).num;
    }

    init
    {
        content =
            [
                piece
            ];
    }
}
